#include <forward_list>
#include <iostream>

void test0(){
	std::forward_list<int> list;
	list.push_front(3);
	list.push_front(2);
	list.push_front(1);

	for ( auto i : list)
		std::cout<< i << ' ';
	std::cout << std::endl;
	
	for ( auto & i : list)
		i *= 2;

	for ( auto i : list)
		std::cout<< i << ' ';
	std::cout << std::endl;

	//for ( std::forward_list<int>::iterator iter = list.begin(); iter != list.end(); ++iter) 
	for ( auto iter = list.begin(); iter != list.end(); ++iter) 
		std::cout << *iter << ' ';
	std::cout << std::endl;
}